import axios from '@/utils/request.js'   //localhost:8989

export const orderlist='/api/order/list'  //订单列表

export const collectOrder = '/api/order/changeStatus' //汇总清单

export const orderDetial = '/api/order/list/detail'  //订单详细信息

export const collectOrderList = '/api/order/collect'  //汇总订单列表数据

export const cancelCollect = '/api/order/cancel'  //撤销汇总订单

/**
 * 获取订单列表
 */
export function orderList(params){
    return axios.get(orderlist,{params})
}
/**
 * 订单汇总 params需要将数组转换为字符串 ids: "1,2,3"
 */
export function collectOrders(params){
    return axios.get(collectOrder,{params})
}

/***
 * 订单详细数据 参数
 */

export function orderDetials(arams){
    return axios.get(orderDetial)
}

/* 汇总订单列表数据
 */
export function collectOrderLists(){
    return axios.get(collectOrderList)
}

/* 撤销汇总清单
 */
export function cancelCollectOrder(params){
    return axios.get(cancelCollect,{params}) 
}